@zoralabs/coins-sdk 0.2.11 → 0.3.0
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/CHANGELOG.md +54 -0
- package/dist/actions/createCoin.d.ts +52 -21
- package/dist/actions/createCoin.d.ts.map +1 -1
- package/dist/api/create.d.ts +8 -0
- package/dist/api/create.d.ts.map +1 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/pool-config.d.ts +5 -0
- package/dist/api/pool-config.d.ts.map +1 -0
- package/dist/client/sdk.gen.d.ts +194 -1
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts +567 -0
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/index.cjs +416 -461
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +387 -432
- package/dist/index.js.map +1 -1
- package/dist/uploader/metadata.d.ts.map +1 -1
- package/dist/uploader/types.d.ts +4 -1
- package/dist/uploader/types.d.ts.map +1 -1
- package/dist/utils/rethrowDecodedRevert.d.ts +3 -0
- package/dist/utils/rethrowDecodedRevert.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/actions/createCoin.ts +154 -112
- package/src/api/create.ts +24 -0
- package/src/api/index.ts +8 -0
- package/src/api/pool-config.ts +17 -0
- package/src/client/sdk.gen.ts +50 -0
- package/src/client/types.gen.ts +581 -0
- package/src/index.ts +4 -6
- package/src/uploader/metadata.ts +4 -1
- package/src/uploader/types.ts +4 -1
- package/src/utils/rethrowDecodedRevert.ts +50 -0
- package/dist/actions/getOnchainCoinDetails.d.ts +0 -32
- package/dist/actions/getOnchainCoinDetails.d.ts.map +0 -1
- package/dist/utils/getPrepurchaseHook.d.ts +0 -16
- package/dist/utils/getPrepurchaseHook.d.ts.map +0 -1
- package/src/actions/getOnchainCoinDetails.ts +0 -68
- package/src/utils/getPrepurchaseHook.ts +0 -59
package/src/client/types.gen.ts
CHANGED
|
@@ -169,6 +169,67 @@ export type GetCoinResponses = {
|
|
|
169
169
|
small: string;
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
+
socialAccounts: {
|
|
173
|
+
instagram?: {
|
|
174
|
+
/**
|
|
175
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
176
|
+
*/
|
|
177
|
+
username?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
180
|
+
*/
|
|
181
|
+
displayName?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
184
|
+
*/
|
|
185
|
+
id?: string;
|
|
186
|
+
};
|
|
187
|
+
tiktok?: {
|
|
188
|
+
/**
|
|
189
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
190
|
+
*/
|
|
191
|
+
username?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
194
|
+
*/
|
|
195
|
+
displayName?: string;
|
|
196
|
+
/**
|
|
197
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
198
|
+
*/
|
|
199
|
+
id?: string;
|
|
200
|
+
};
|
|
201
|
+
twitter?: {
|
|
202
|
+
/**
|
|
203
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
204
|
+
*/
|
|
205
|
+
username?: string;
|
|
206
|
+
/**
|
|
207
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
208
|
+
*/
|
|
209
|
+
displayName?: string;
|
|
210
|
+
/**
|
|
211
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
212
|
+
*/
|
|
213
|
+
id?: string;
|
|
214
|
+
};
|
|
215
|
+
farcaster?: {
|
|
216
|
+
/**
|
|
217
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
218
|
+
*/
|
|
219
|
+
username?: string;
|
|
220
|
+
/**
|
|
221
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
222
|
+
*/
|
|
223
|
+
displayName?: string;
|
|
224
|
+
/**
|
|
225
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
226
|
+
*/
|
|
227
|
+
id?: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
creatorCoin?: {
|
|
231
|
+
address: string;
|
|
232
|
+
};
|
|
172
233
|
};
|
|
173
234
|
mediaContent?: {
|
|
174
235
|
/**
|
|
@@ -807,6 +868,67 @@ export type GetCoinsResponses = {
|
|
|
807
868
|
small: string;
|
|
808
869
|
};
|
|
809
870
|
};
|
|
871
|
+
socialAccounts: {
|
|
872
|
+
instagram?: {
|
|
873
|
+
/**
|
|
874
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
875
|
+
*/
|
|
876
|
+
username?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
879
|
+
*/
|
|
880
|
+
displayName?: string;
|
|
881
|
+
/**
|
|
882
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
883
|
+
*/
|
|
884
|
+
id?: string;
|
|
885
|
+
};
|
|
886
|
+
tiktok?: {
|
|
887
|
+
/**
|
|
888
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
889
|
+
*/
|
|
890
|
+
username?: string;
|
|
891
|
+
/**
|
|
892
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
893
|
+
*/
|
|
894
|
+
displayName?: string;
|
|
895
|
+
/**
|
|
896
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
897
|
+
*/
|
|
898
|
+
id?: string;
|
|
899
|
+
};
|
|
900
|
+
twitter?: {
|
|
901
|
+
/**
|
|
902
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
903
|
+
*/
|
|
904
|
+
username?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
907
|
+
*/
|
|
908
|
+
displayName?: string;
|
|
909
|
+
/**
|
|
910
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
911
|
+
*/
|
|
912
|
+
id?: string;
|
|
913
|
+
};
|
|
914
|
+
farcaster?: {
|
|
915
|
+
/**
|
|
916
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
917
|
+
*/
|
|
918
|
+
username?: string;
|
|
919
|
+
/**
|
|
920
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
921
|
+
*/
|
|
922
|
+
displayName?: string;
|
|
923
|
+
/**
|
|
924
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
925
|
+
*/
|
|
926
|
+
id?: string;
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
creatorCoin?: {
|
|
930
|
+
address: string;
|
|
931
|
+
};
|
|
810
932
|
};
|
|
811
933
|
mediaContent?: {
|
|
812
934
|
/**
|
|
@@ -1118,6 +1240,67 @@ export type GetExploreResponses = {
|
|
|
1118
1240
|
small: string;
|
|
1119
1241
|
};
|
|
1120
1242
|
};
|
|
1243
|
+
socialAccounts: {
|
|
1244
|
+
instagram?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1247
|
+
*/
|
|
1248
|
+
username?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1251
|
+
*/
|
|
1252
|
+
displayName?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1255
|
+
*/
|
|
1256
|
+
id?: string;
|
|
1257
|
+
};
|
|
1258
|
+
tiktok?: {
|
|
1259
|
+
/**
|
|
1260
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1261
|
+
*/
|
|
1262
|
+
username?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1265
|
+
*/
|
|
1266
|
+
displayName?: string;
|
|
1267
|
+
/**
|
|
1268
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1269
|
+
*/
|
|
1270
|
+
id?: string;
|
|
1271
|
+
};
|
|
1272
|
+
twitter?: {
|
|
1273
|
+
/**
|
|
1274
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1275
|
+
*/
|
|
1276
|
+
username?: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1279
|
+
*/
|
|
1280
|
+
displayName?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1283
|
+
*/
|
|
1284
|
+
id?: string;
|
|
1285
|
+
};
|
|
1286
|
+
farcaster?: {
|
|
1287
|
+
/**
|
|
1288
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1289
|
+
*/
|
|
1290
|
+
username?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1293
|
+
*/
|
|
1294
|
+
displayName?: string;
|
|
1295
|
+
/**
|
|
1296
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1297
|
+
*/
|
|
1298
|
+
id?: string;
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
creatorCoin?: {
|
|
1302
|
+
address: string;
|
|
1303
|
+
};
|
|
1121
1304
|
};
|
|
1122
1305
|
mediaContent?: {
|
|
1123
1306
|
/**
|
|
@@ -1260,6 +1443,10 @@ export type GetProfileResponses = {
|
|
|
1260
1443
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1261
1444
|
*/
|
|
1262
1445
|
displayName?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1448
|
+
*/
|
|
1449
|
+
id?: string;
|
|
1263
1450
|
};
|
|
1264
1451
|
tiktok?: {
|
|
1265
1452
|
/**
|
|
@@ -1270,6 +1457,10 @@ export type GetProfileResponses = {
|
|
|
1270
1457
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1271
1458
|
*/
|
|
1272
1459
|
displayName?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1462
|
+
*/
|
|
1463
|
+
id?: string;
|
|
1273
1464
|
};
|
|
1274
1465
|
twitter?: {
|
|
1275
1466
|
/**
|
|
@@ -1280,6 +1471,10 @@ export type GetProfileResponses = {
|
|
|
1280
1471
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1281
1472
|
*/
|
|
1282
1473
|
displayName?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1476
|
+
*/
|
|
1477
|
+
id?: string;
|
|
1283
1478
|
};
|
|
1284
1479
|
farcaster?: {
|
|
1285
1480
|
/**
|
|
@@ -1290,6 +1485,10 @@ export type GetProfileResponses = {
|
|
|
1290
1485
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1291
1486
|
*/
|
|
1292
1487
|
displayName?: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1490
|
+
*/
|
|
1491
|
+
id?: string;
|
|
1293
1492
|
};
|
|
1294
1493
|
};
|
|
1295
1494
|
linkedWallets: {
|
|
@@ -1372,6 +1571,67 @@ export type GetProfileBalancesResponses = {
|
|
|
1372
1571
|
small: string;
|
|
1373
1572
|
};
|
|
1374
1573
|
};
|
|
1574
|
+
socialAccounts: {
|
|
1575
|
+
instagram?: {
|
|
1576
|
+
/**
|
|
1577
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1578
|
+
*/
|
|
1579
|
+
username?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1582
|
+
*/
|
|
1583
|
+
displayName?: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1586
|
+
*/
|
|
1587
|
+
id?: string;
|
|
1588
|
+
};
|
|
1589
|
+
tiktok?: {
|
|
1590
|
+
/**
|
|
1591
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1592
|
+
*/
|
|
1593
|
+
username?: string;
|
|
1594
|
+
/**
|
|
1595
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1596
|
+
*/
|
|
1597
|
+
displayName?: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1600
|
+
*/
|
|
1601
|
+
id?: string;
|
|
1602
|
+
};
|
|
1603
|
+
twitter?: {
|
|
1604
|
+
/**
|
|
1605
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1606
|
+
*/
|
|
1607
|
+
username?: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1610
|
+
*/
|
|
1611
|
+
displayName?: string;
|
|
1612
|
+
/**
|
|
1613
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1614
|
+
*/
|
|
1615
|
+
id?: string;
|
|
1616
|
+
};
|
|
1617
|
+
farcaster?: {
|
|
1618
|
+
/**
|
|
1619
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1620
|
+
*/
|
|
1621
|
+
username?: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1624
|
+
*/
|
|
1625
|
+
displayName?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1628
|
+
*/
|
|
1629
|
+
id?: string;
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
creatorCoin?: {
|
|
1633
|
+
address: string;
|
|
1634
|
+
};
|
|
1375
1635
|
coinBalances: {
|
|
1376
1636
|
/**
|
|
1377
1637
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
@@ -1490,6 +1750,67 @@ export type GetProfileBalancesResponses = {
|
|
|
1490
1750
|
small: string;
|
|
1491
1751
|
};
|
|
1492
1752
|
};
|
|
1753
|
+
socialAccounts: {
|
|
1754
|
+
instagram?: {
|
|
1755
|
+
/**
|
|
1756
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1757
|
+
*/
|
|
1758
|
+
username?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1761
|
+
*/
|
|
1762
|
+
displayName?: string;
|
|
1763
|
+
/**
|
|
1764
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1765
|
+
*/
|
|
1766
|
+
id?: string;
|
|
1767
|
+
};
|
|
1768
|
+
tiktok?: {
|
|
1769
|
+
/**
|
|
1770
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1771
|
+
*/
|
|
1772
|
+
username?: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1775
|
+
*/
|
|
1776
|
+
displayName?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1779
|
+
*/
|
|
1780
|
+
id?: string;
|
|
1781
|
+
};
|
|
1782
|
+
twitter?: {
|
|
1783
|
+
/**
|
|
1784
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1785
|
+
*/
|
|
1786
|
+
username?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1789
|
+
*/
|
|
1790
|
+
displayName?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1793
|
+
*/
|
|
1794
|
+
id?: string;
|
|
1795
|
+
};
|
|
1796
|
+
farcaster?: {
|
|
1797
|
+
/**
|
|
1798
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1799
|
+
*/
|
|
1800
|
+
username?: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1803
|
+
*/
|
|
1804
|
+
displayName?: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1807
|
+
*/
|
|
1808
|
+
id?: string;
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
creatorCoin?: {
|
|
1812
|
+
address: string;
|
|
1813
|
+
};
|
|
1493
1814
|
};
|
|
1494
1815
|
mediaContent?: {
|
|
1495
1816
|
/**
|
|
@@ -1608,6 +1929,67 @@ export type GetProfileCoinsResponses = {
|
|
|
1608
1929
|
small: string;
|
|
1609
1930
|
};
|
|
1610
1931
|
};
|
|
1932
|
+
socialAccounts: {
|
|
1933
|
+
instagram?: {
|
|
1934
|
+
/**
|
|
1935
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1936
|
+
*/
|
|
1937
|
+
username?: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1940
|
+
*/
|
|
1941
|
+
displayName?: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1944
|
+
*/
|
|
1945
|
+
id?: string;
|
|
1946
|
+
};
|
|
1947
|
+
tiktok?: {
|
|
1948
|
+
/**
|
|
1949
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1950
|
+
*/
|
|
1951
|
+
username?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1954
|
+
*/
|
|
1955
|
+
displayName?: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1958
|
+
*/
|
|
1959
|
+
id?: string;
|
|
1960
|
+
};
|
|
1961
|
+
twitter?: {
|
|
1962
|
+
/**
|
|
1963
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1964
|
+
*/
|
|
1965
|
+
username?: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1968
|
+
*/
|
|
1969
|
+
displayName?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1972
|
+
*/
|
|
1973
|
+
id?: string;
|
|
1974
|
+
};
|
|
1975
|
+
farcaster?: {
|
|
1976
|
+
/**
|
|
1977
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1978
|
+
*/
|
|
1979
|
+
username?: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1982
|
+
*/
|
|
1983
|
+
displayName?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1986
|
+
*/
|
|
1987
|
+
id?: string;
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
creatorCoin?: {
|
|
1991
|
+
address: string;
|
|
1992
|
+
};
|
|
1611
1993
|
createdCoins?: {
|
|
1612
1994
|
/**
|
|
1613
1995
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
@@ -1717,6 +2099,67 @@ export type GetProfileCoinsResponses = {
|
|
|
1717
2099
|
small: string;
|
|
1718
2100
|
};
|
|
1719
2101
|
};
|
|
2102
|
+
socialAccounts: {
|
|
2103
|
+
instagram?: {
|
|
2104
|
+
/**
|
|
2105
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2106
|
+
*/
|
|
2107
|
+
username?: string;
|
|
2108
|
+
/**
|
|
2109
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2110
|
+
*/
|
|
2111
|
+
displayName?: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2114
|
+
*/
|
|
2115
|
+
id?: string;
|
|
2116
|
+
};
|
|
2117
|
+
tiktok?: {
|
|
2118
|
+
/**
|
|
2119
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2120
|
+
*/
|
|
2121
|
+
username?: string;
|
|
2122
|
+
/**
|
|
2123
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2124
|
+
*/
|
|
2125
|
+
displayName?: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2128
|
+
*/
|
|
2129
|
+
id?: string;
|
|
2130
|
+
};
|
|
2131
|
+
twitter?: {
|
|
2132
|
+
/**
|
|
2133
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2134
|
+
*/
|
|
2135
|
+
username?: string;
|
|
2136
|
+
/**
|
|
2137
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2138
|
+
*/
|
|
2139
|
+
displayName?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2142
|
+
*/
|
|
2143
|
+
id?: string;
|
|
2144
|
+
};
|
|
2145
|
+
farcaster?: {
|
|
2146
|
+
/**
|
|
2147
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2148
|
+
*/
|
|
2149
|
+
username?: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2152
|
+
*/
|
|
2153
|
+
displayName?: string;
|
|
2154
|
+
/**
|
|
2155
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
2156
|
+
*/
|
|
2157
|
+
id?: string;
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
creatorCoin?: {
|
|
2161
|
+
address: string;
|
|
2162
|
+
};
|
|
1720
2163
|
};
|
|
1721
2164
|
mediaContent?: {
|
|
1722
2165
|
/**
|
|
@@ -1849,6 +2292,7 @@ export type GetProfileCoinsResponse =
|
|
|
1849
2292
|
|
|
1850
2293
|
export type PostQuoteData = {
|
|
1851
2294
|
body?: {
|
|
2295
|
+
referrer?: string;
|
|
1852
2296
|
signatures?: Array<{
|
|
1853
2297
|
permit: {
|
|
1854
2298
|
details: {
|
|
@@ -1938,6 +2382,143 @@ export type PostQuoteResponses = {
|
|
|
1938
2382
|
|
|
1939
2383
|
export type PostQuoteResponse = PostQuoteResponses[keyof PostQuoteResponses];
|
|
1940
2384
|
|
|
2385
|
+
export type GetCreateContentPoolConfigData = {
|
|
2386
|
+
body?: never;
|
|
2387
|
+
path?: never;
|
|
2388
|
+
query?: {
|
|
2389
|
+
starting_market_cap?: "HIGH" | "LOW";
|
|
2390
|
+
currency?: "CREATOR_COIN" | "ZORA" | "ETH" | "CREATOR_COIN_OR_ZORA";
|
|
2391
|
+
creator_identifier?: string;
|
|
2392
|
+
chain_id?: string;
|
|
2393
|
+
};
|
|
2394
|
+
url: "/create/content/pool-config";
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
export type GetCreateContentPoolConfigErrors = {
|
|
2398
|
+
/**
|
|
2399
|
+
* Invalid backing currency address
|
|
2400
|
+
*/
|
|
2401
|
+
400: {
|
|
2402
|
+
error: string;
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
export type GetCreateContentPoolConfigError =
|
|
2407
|
+
GetCreateContentPoolConfigErrors[keyof GetCreateContentPoolConfigErrors];
|
|
2408
|
+
|
|
2409
|
+
export type GetCreateContentPoolConfigResponses = {
|
|
2410
|
+
/**
|
|
2411
|
+
* Content pool configuration
|
|
2412
|
+
*/
|
|
2413
|
+
200: {
|
|
2414
|
+
/**
|
|
2415
|
+
* Encoded pool configuration as hex string
|
|
2416
|
+
*/
|
|
2417
|
+
poolConfig: string;
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
|
|
2421
|
+
export type GetCreateContentPoolConfigResponse =
|
|
2422
|
+
GetCreateContentPoolConfigResponses[keyof GetCreateContentPoolConfigResponses];
|
|
2423
|
+
|
|
2424
|
+
export type PostCreateContentData = {
|
|
2425
|
+
body?: {
|
|
2426
|
+
/**
|
|
2427
|
+
* EOA address of the content creator. Auto-included in the owners set and used as default payout recipient if none is specified.
|
|
2428
|
+
*/
|
|
2429
|
+
creator: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* Human-readable name for the content coin.
|
|
2432
|
+
*/
|
|
2433
|
+
name: string;
|
|
2434
|
+
/**
|
|
2435
|
+
* Ticker symbol for the content coin (e.g. ZORA).
|
|
2436
|
+
*/
|
|
2437
|
+
symbol: string;
|
|
2438
|
+
/**
|
|
2439
|
+
* Metadata configuration for the content coin.
|
|
2440
|
+
*/
|
|
2441
|
+
metadata: {
|
|
2442
|
+
/**
|
|
2443
|
+
* Metadata type. Only RAW_URI is supported.
|
|
2444
|
+
*/
|
|
2445
|
+
type: "RAW_URI";
|
|
2446
|
+
/**
|
|
2447
|
+
* IPFS or HTTPS URI pointing to the metadata JSON (e.g. ipfs://... or https://...).
|
|
2448
|
+
*/
|
|
2449
|
+
uri: string;
|
|
2450
|
+
};
|
|
2451
|
+
/**
|
|
2452
|
+
* Backing currency selection for the pool.
|
|
2453
|
+
*/
|
|
2454
|
+
currency: "CREATOR_COIN" | "ZORA" | "ETH" | "CREATOR_COIN_OR_ZORA";
|
|
2455
|
+
/**
|
|
2456
|
+
* Target EVM chain ID. Supported: Base mainnet and Base Sepolia. Defaults to Base mainnet.
|
|
2457
|
+
*/
|
|
2458
|
+
chainId?: number;
|
|
2459
|
+
/**
|
|
2460
|
+
* Initial market cap tier for the pool configuration.
|
|
2461
|
+
*/
|
|
2462
|
+
startingMarketCap?: "LOW" | "HIGH";
|
|
2463
|
+
/**
|
|
2464
|
+
* Optional platform referrer address for attribution. Use zero address if not applicable.
|
|
2465
|
+
*/
|
|
2466
|
+
platformReferrer?: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* Optional additional owner addresses to include. Each owner has full admin access to the coin. The creator address is automatically included.
|
|
2469
|
+
*/
|
|
2470
|
+
additionalOwners?: Array<string>;
|
|
2471
|
+
/**
|
|
2472
|
+
* Optional address to receive payouts/fees. Defaults to the creator if omitted.
|
|
2473
|
+
*/
|
|
2474
|
+
payoutRecipientOverride?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* Optional smart wallet routing. Defaults to AUTO if omitted.
|
|
2477
|
+
*/
|
|
2478
|
+
smartWalletRouting?: "AUTO" | "DISABLE";
|
|
2479
|
+
};
|
|
2480
|
+
path?: never;
|
|
2481
|
+
query?: never;
|
|
2482
|
+
url: "/create/content";
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
export type PostCreateContentErrors = {
|
|
2486
|
+
/**
|
|
2487
|
+
* Invalid request parameters
|
|
2488
|
+
*/
|
|
2489
|
+
400: {
|
|
2490
|
+
error: string;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
export type PostCreateContentError =
|
|
2495
|
+
PostCreateContentErrors[keyof PostCreateContentErrors];
|
|
2496
|
+
|
|
2497
|
+
export type PostCreateContentResponses = {
|
|
2498
|
+
/**
|
|
2499
|
+
* Content coin creation parameters
|
|
2500
|
+
*/
|
|
2501
|
+
200: {
|
|
2502
|
+
calls?: Array<{
|
|
2503
|
+
/**
|
|
2504
|
+
* Encoded function call data
|
|
2505
|
+
*/
|
|
2506
|
+
to: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* Target contract address
|
|
2509
|
+
*/
|
|
2510
|
+
data: string;
|
|
2511
|
+
/**
|
|
2512
|
+
* ETH value to send
|
|
2513
|
+
*/
|
|
2514
|
+
value: string;
|
|
2515
|
+
}>;
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
|
|
2519
|
+
export type PostCreateContentResponse =
|
|
2520
|
+
PostCreateContentResponses[keyof PostCreateContentResponses];
|
|
2521
|
+
|
|
1941
2522
|
export type ClientOptions = {
|
|
1942
2523
|
baseUrl:
|
|
1943
2524
|
| "https://api-sdk.zora.engineering/"
|