gondi 0.49.0 → 0.51.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.
@@ -1,7 +1,7 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
2
2
  import { getSdkApollo } from '../../clients/api/sdk';
3
3
  import { Wallet } from '../../clients/contracts';
4
- import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, LoanOfferPublicationInput, NftOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
4
+ import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, LoanOfferPublicationInput, NftOrderInput, NftSetOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
5
5
  import { OnStepChange } from '../../gondi';
6
6
  import { RenegotiationOffer } from '../../model';
7
7
  export type Props = {
@@ -9,6 +9,8 @@ export type Props = {
9
9
  wallet: Wallet;
10
10
  onStepChange?: OnStepChange;
11
11
  };
12
+ /** A bid or listing `publishOrder` accepts: one NFT, a collection, some traits or a set of NFTs. */
13
+ export type OrderInput = SingleNftOrderInput | CollectionOrderInput | TraitOrderInput | NftSetOrderInput;
12
14
  export declare const apiDomain: () => string;
13
15
  export declare const lendingApiDomain: () => string;
14
16
  export declare class Api {
@@ -162,7 +164,7 @@ export declare class Api {
162
164
  nftCollateralAddress: `0x${string}`;
163
165
  nftCollateralTokenId: bigint;
164
166
  }>;
165
- publishOrder(orderInput: SingleNftOrderInput | CollectionOrderInput | TraitOrderInput): Promise<{
167
+ publishOrder(orderInput: OrderInput): Promise<{
166
168
  __typename?: "MultipleTraitOrder";
167
169
  id: string;
168
170
  status: string;
@@ -190,6 +192,12 @@ export declare class Api {
190
192
  status: string;
191
193
  signature: import("viem").Hex;
192
194
  marketPlaceAddress: import("viem").Address;
195
+ } | {
196
+ __typename?: "SetBidOrder";
197
+ id: string;
198
+ status: string;
199
+ signature: import("viem").Hex;
200
+ marketPlaceAddress: import("viem").Address;
193
201
  } | {
194
202
  __typename?: "CollectionOrder";
195
203
  id: string;
@@ -61,6 +61,9 @@ export declare function getSdkApollo<C>(client: ApolloClient<C>, onStepChange?:
61
61
  publishOrderForNft(variables: import("../../generated/graphql").Exact<{
62
62
  orderInput: import("../../generated/graphql").SingleNftOrderInput;
63
63
  }>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForNftMutation>;
64
+ publishOrderForNftSet(variables: import("../../generated/graphql").Exact<{
65
+ orderInput: import("../../generated/graphql").NftSetOrderInput;
66
+ }>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForNftSetMutation>;
64
67
  publishOrderForTrait(variables: import("../../generated/graphql").Exact<{
65
68
  orderInput: import("../../generated/graphql").TraitOrderInput;
66
69
  }>, options?: {} | undefined): Promise<import("../../generated/graphql").PublishOrderForTraitMutation>;
@@ -1334,6 +1334,335 @@ export declare class Contracts {
1334
1334
  readonly name: "PunkNoLongerForSale";
1335
1335
  readonly type: "event";
1336
1336
  }]>;
1337
+ Cryptopunks721(address: Address): BaseContract<readonly [{
1338
+ readonly type: "function";
1339
+ readonly inputs: readonly [{
1340
+ readonly name: "to";
1341
+ readonly internalType: "address";
1342
+ readonly type: "address";
1343
+ }, {
1344
+ readonly name: "tokenId";
1345
+ readonly internalType: "uint256";
1346
+ readonly type: "uint256";
1347
+ }];
1348
+ readonly name: "approve";
1349
+ readonly outputs: readonly [];
1350
+ readonly stateMutability: "nonpayable";
1351
+ }, {
1352
+ readonly type: "function";
1353
+ readonly inputs: readonly [{
1354
+ readonly name: "owner";
1355
+ readonly internalType: "address";
1356
+ readonly type: "address";
1357
+ }];
1358
+ readonly name: "balanceOf";
1359
+ readonly outputs: readonly [{
1360
+ readonly name: "balance";
1361
+ readonly internalType: "uint256";
1362
+ readonly type: "uint256";
1363
+ }];
1364
+ readonly stateMutability: "view";
1365
+ }, {
1366
+ readonly type: "function";
1367
+ readonly inputs: readonly [{
1368
+ readonly name: "tokenId";
1369
+ readonly internalType: "uint256";
1370
+ readonly type: "uint256";
1371
+ }];
1372
+ readonly name: "getApproved";
1373
+ readonly outputs: readonly [{
1374
+ readonly name: "operator";
1375
+ readonly internalType: "address";
1376
+ readonly type: "address";
1377
+ }];
1378
+ readonly stateMutability: "view";
1379
+ }, {
1380
+ readonly type: "function";
1381
+ readonly inputs: readonly [{
1382
+ readonly name: "owner";
1383
+ readonly internalType: "address";
1384
+ readonly type: "address";
1385
+ }, {
1386
+ readonly name: "operator";
1387
+ readonly internalType: "address";
1388
+ readonly type: "address";
1389
+ }];
1390
+ readonly name: "isApprovedForAll";
1391
+ readonly outputs: readonly [{
1392
+ readonly name: "";
1393
+ readonly internalType: "bool";
1394
+ readonly type: "bool";
1395
+ }];
1396
+ readonly stateMutability: "view";
1397
+ }, {
1398
+ readonly type: "function";
1399
+ readonly inputs: readonly [];
1400
+ readonly name: "licensingTerms";
1401
+ readonly outputs: readonly [{
1402
+ readonly name: "";
1403
+ readonly internalType: "string";
1404
+ readonly type: "string";
1405
+ }];
1406
+ readonly stateMutability: "pure";
1407
+ }, {
1408
+ readonly type: "function";
1409
+ readonly inputs: readonly [{
1410
+ readonly name: "punkIndexes";
1411
+ readonly internalType: "uint256[]";
1412
+ readonly type: "uint256[]";
1413
+ }];
1414
+ readonly name: "migrateLegacyWrappedPunks";
1415
+ readonly outputs: readonly [];
1416
+ readonly stateMutability: "nonpayable";
1417
+ }, {
1418
+ readonly type: "function";
1419
+ readonly inputs: readonly [{
1420
+ readonly name: "tokenId";
1421
+ readonly internalType: "uint256";
1422
+ readonly type: "uint256";
1423
+ }];
1424
+ readonly name: "ownerOf";
1425
+ readonly outputs: readonly [{
1426
+ readonly name: "owner";
1427
+ readonly internalType: "address";
1428
+ readonly type: "address";
1429
+ }];
1430
+ readonly stateMutability: "view";
1431
+ }, {
1432
+ readonly type: "function";
1433
+ readonly inputs: readonly [{
1434
+ readonly name: "user";
1435
+ readonly internalType: "address";
1436
+ readonly type: "address";
1437
+ }];
1438
+ readonly name: "punkProxyForUser";
1439
+ readonly outputs: readonly [{
1440
+ readonly name: "";
1441
+ readonly internalType: "address";
1442
+ readonly type: "address";
1443
+ }];
1444
+ readonly stateMutability: "view";
1445
+ }, {
1446
+ readonly type: "function";
1447
+ readonly inputs: readonly [{
1448
+ readonly name: "punkIndex";
1449
+ readonly internalType: "uint256";
1450
+ readonly type: "uint256";
1451
+ }];
1452
+ readonly name: "rescuePunk";
1453
+ readonly outputs: readonly [];
1454
+ readonly stateMutability: "nonpayable";
1455
+ }, {
1456
+ readonly type: "function";
1457
+ readonly inputs: readonly [{
1458
+ readonly name: "from";
1459
+ readonly internalType: "address";
1460
+ readonly type: "address";
1461
+ }, {
1462
+ readonly name: "to";
1463
+ readonly internalType: "address";
1464
+ readonly type: "address";
1465
+ }, {
1466
+ readonly name: "tokenId";
1467
+ readonly internalType: "uint256";
1468
+ readonly type: "uint256";
1469
+ }];
1470
+ readonly name: "safeTransferFrom";
1471
+ readonly outputs: readonly [];
1472
+ readonly stateMutability: "nonpayable";
1473
+ }, {
1474
+ readonly type: "function";
1475
+ readonly inputs: readonly [{
1476
+ readonly name: "from";
1477
+ readonly internalType: "address";
1478
+ readonly type: "address";
1479
+ }, {
1480
+ readonly name: "to";
1481
+ readonly internalType: "address";
1482
+ readonly type: "address";
1483
+ }, {
1484
+ readonly name: "tokenId";
1485
+ readonly internalType: "uint256";
1486
+ readonly type: "uint256";
1487
+ }, {
1488
+ readonly name: "data";
1489
+ readonly internalType: "bytes";
1490
+ readonly type: "bytes";
1491
+ }];
1492
+ readonly name: "safeTransferFrom";
1493
+ readonly outputs: readonly [];
1494
+ readonly stateMutability: "nonpayable";
1495
+ }, {
1496
+ readonly type: "function";
1497
+ readonly inputs: readonly [{
1498
+ readonly name: "operator";
1499
+ readonly internalType: "address";
1500
+ readonly type: "address";
1501
+ }, {
1502
+ readonly name: "approved";
1503
+ readonly internalType: "bool";
1504
+ readonly type: "bool";
1505
+ }];
1506
+ readonly name: "setApprovalForAll";
1507
+ readonly outputs: readonly [];
1508
+ readonly stateMutability: "nonpayable";
1509
+ }, {
1510
+ readonly type: "function";
1511
+ readonly inputs: readonly [{
1512
+ readonly name: "interfaceId";
1513
+ readonly internalType: "bytes4";
1514
+ readonly type: "bytes4";
1515
+ }];
1516
+ readonly name: "supportsInterface";
1517
+ readonly outputs: readonly [{
1518
+ readonly name: "";
1519
+ readonly internalType: "bool";
1520
+ readonly type: "bool";
1521
+ }];
1522
+ readonly stateMutability: "view";
1523
+ }, {
1524
+ readonly type: "function";
1525
+ readonly inputs: readonly [{
1526
+ readonly name: "owner";
1527
+ readonly internalType: "address";
1528
+ readonly type: "address";
1529
+ }];
1530
+ readonly name: "tokensOfOwner";
1531
+ readonly outputs: readonly [{
1532
+ readonly name: "";
1533
+ readonly internalType: "uint256[]";
1534
+ readonly type: "uint256[]";
1535
+ }];
1536
+ readonly stateMutability: "view";
1537
+ }, {
1538
+ readonly type: "function";
1539
+ readonly inputs: readonly [];
1540
+ readonly name: "totalSupply";
1541
+ readonly outputs: readonly [{
1542
+ readonly name: "";
1543
+ readonly internalType: "uint256";
1544
+ readonly type: "uint256";
1545
+ }];
1546
+ readonly stateMutability: "view";
1547
+ }, {
1548
+ readonly type: "function";
1549
+ readonly inputs: readonly [{
1550
+ readonly name: "from";
1551
+ readonly internalType: "address";
1552
+ readonly type: "address";
1553
+ }, {
1554
+ readonly name: "to";
1555
+ readonly internalType: "address";
1556
+ readonly type: "address";
1557
+ }, {
1558
+ readonly name: "tokenId";
1559
+ readonly internalType: "uint256";
1560
+ readonly type: "uint256";
1561
+ }];
1562
+ readonly name: "transferFrom";
1563
+ readonly outputs: readonly [];
1564
+ readonly stateMutability: "nonpayable";
1565
+ }, {
1566
+ readonly type: "function";
1567
+ readonly inputs: readonly [{
1568
+ readonly name: "punkIndex";
1569
+ readonly internalType: "uint256";
1570
+ readonly type: "uint256";
1571
+ }];
1572
+ readonly name: "unwrapPunk";
1573
+ readonly outputs: readonly [];
1574
+ readonly stateMutability: "nonpayable";
1575
+ }, {
1576
+ readonly type: "function";
1577
+ readonly inputs: readonly [{
1578
+ readonly name: "punkIndexes";
1579
+ readonly internalType: "uint256[]";
1580
+ readonly type: "uint256[]";
1581
+ }];
1582
+ readonly name: "unwrapPunkBatch";
1583
+ readonly outputs: readonly [];
1584
+ readonly stateMutability: "nonpayable";
1585
+ }, {
1586
+ readonly type: "function";
1587
+ readonly inputs: readonly [{
1588
+ readonly name: "punkIndex";
1589
+ readonly internalType: "uint256";
1590
+ readonly type: "uint256";
1591
+ }];
1592
+ readonly name: "wrapPunk";
1593
+ readonly outputs: readonly [];
1594
+ readonly stateMutability: "nonpayable";
1595
+ }, {
1596
+ readonly type: "function";
1597
+ readonly inputs: readonly [{
1598
+ readonly name: "punkIndexes";
1599
+ readonly internalType: "uint256[]";
1600
+ readonly type: "uint256[]";
1601
+ }];
1602
+ readonly name: "wrapPunkBatch";
1603
+ readonly outputs: readonly [];
1604
+ readonly stateMutability: "nonpayable";
1605
+ }, {
1606
+ readonly type: "event";
1607
+ readonly anonymous: false;
1608
+ readonly inputs: readonly [{
1609
+ readonly name: "owner";
1610
+ readonly internalType: "address";
1611
+ readonly type: "address";
1612
+ readonly indexed: true;
1613
+ }, {
1614
+ readonly name: "approved";
1615
+ readonly internalType: "address";
1616
+ readonly type: "address";
1617
+ readonly indexed: true;
1618
+ }, {
1619
+ readonly name: "tokenId";
1620
+ readonly internalType: "uint256";
1621
+ readonly type: "uint256";
1622
+ readonly indexed: true;
1623
+ }];
1624
+ readonly name: "Approval";
1625
+ }, {
1626
+ readonly type: "event";
1627
+ readonly anonymous: false;
1628
+ readonly inputs: readonly [{
1629
+ readonly name: "owner";
1630
+ readonly internalType: "address";
1631
+ readonly type: "address";
1632
+ readonly indexed: true;
1633
+ }, {
1634
+ readonly name: "operator";
1635
+ readonly internalType: "address";
1636
+ readonly type: "address";
1637
+ readonly indexed: true;
1638
+ }, {
1639
+ readonly name: "approved";
1640
+ readonly internalType: "bool";
1641
+ readonly type: "bool";
1642
+ readonly indexed: false;
1643
+ }];
1644
+ readonly name: "ApprovalForAll";
1645
+ }, {
1646
+ readonly type: "event";
1647
+ readonly anonymous: false;
1648
+ readonly inputs: readonly [{
1649
+ readonly name: "from";
1650
+ readonly internalType: "address";
1651
+ readonly type: "address";
1652
+ readonly indexed: true;
1653
+ }, {
1654
+ readonly name: "to";
1655
+ readonly internalType: "address";
1656
+ readonly type: "address";
1657
+ readonly indexed: true;
1658
+ }, {
1659
+ readonly name: "tokenId";
1660
+ readonly internalType: "uint256";
1661
+ readonly type: "uint256";
1662
+ readonly indexed: true;
1663
+ }];
1664
+ readonly name: "Transfer";
1665
+ }]>;
1337
1666
  ERC1155(address: Address): BaseContract<readonly [{
1338
1667
  readonly type: "function";
1339
1668
  readonly inputs: readonly [{
@@ -34,6 +34,7 @@ interface Contracts {
34
34
  Permit2: Address;
35
35
  UniswapQuoterV2: Address;
36
36
  Cryptopunks: Address;
37
+ Cryptopunks721: Address;
37
38
  }
38
39
  interface ApiKeys {
39
40
  infuraApiKey: string;