@plutonlabs/sdk 0.0.36-beta → 0.0.38-beta
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/seed/pluton_contracts_seed.json +773 -4
- package/package.json +28 -28
@@ -1303,12 +1303,781 @@
|
|
1303
1303
|
"coinType": 5000,
|
1304
1304
|
"chainId": 5000,
|
1305
1305
|
"pluton": {
|
1306
|
-
"address": "
|
1307
|
-
"abi": [
|
1306
|
+
"address": "0x0D202252D1525319C921AbCF553301479B7f52bC",
|
1307
|
+
"abi": [
|
1308
|
+
{
|
1309
|
+
"inputs": [],
|
1310
|
+
"stateMutability": "nonpayable",
|
1311
|
+
"type": "constructor"
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
"inputs": [],
|
1315
|
+
"name": "AlreadyResolved",
|
1316
|
+
"type": "error"
|
1317
|
+
},
|
1318
|
+
{
|
1319
|
+
"inputs": [
|
1320
|
+
{
|
1321
|
+
"internalType": "uint256",
|
1322
|
+
"name": "",
|
1323
|
+
"type": "uint256"
|
1324
|
+
},
|
1325
|
+
{
|
1326
|
+
"internalType": "uint256",
|
1327
|
+
"name": "",
|
1328
|
+
"type": "uint256"
|
1329
|
+
}
|
1330
|
+
],
|
1331
|
+
"name": "DeadlineReached",
|
1332
|
+
"type": "error"
|
1333
|
+
},
|
1334
|
+
{
|
1335
|
+
"inputs": [],
|
1336
|
+
"name": "ECDSAInvalidSignature",
|
1337
|
+
"type": "error"
|
1338
|
+
},
|
1339
|
+
{
|
1340
|
+
"inputs": [
|
1341
|
+
{
|
1342
|
+
"internalType": "uint256",
|
1343
|
+
"name": "length",
|
1344
|
+
"type": "uint256"
|
1345
|
+
}
|
1346
|
+
],
|
1347
|
+
"name": "ECDSAInvalidSignatureLength",
|
1348
|
+
"type": "error"
|
1349
|
+
},
|
1350
|
+
{
|
1351
|
+
"inputs": [
|
1352
|
+
{
|
1353
|
+
"internalType": "bytes32",
|
1354
|
+
"name": "s",
|
1355
|
+
"type": "bytes32"
|
1356
|
+
}
|
1357
|
+
],
|
1358
|
+
"name": "ECDSAInvalidSignatureS",
|
1359
|
+
"type": "error"
|
1360
|
+
},
|
1361
|
+
{
|
1362
|
+
"inputs": [],
|
1363
|
+
"name": "EthNotTransferred",
|
1364
|
+
"type": "error"
|
1365
|
+
},
|
1366
|
+
{
|
1367
|
+
"inputs": [],
|
1368
|
+
"name": "InvalidShortString",
|
1369
|
+
"type": "error"
|
1370
|
+
},
|
1371
|
+
{
|
1372
|
+
"inputs": [
|
1373
|
+
{
|
1374
|
+
"internalType": "address",
|
1375
|
+
"name": "owner",
|
1376
|
+
"type": "address"
|
1377
|
+
}
|
1378
|
+
],
|
1379
|
+
"name": "OwnableInvalidOwner",
|
1380
|
+
"type": "error"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"inputs": [
|
1384
|
+
{
|
1385
|
+
"internalType": "address",
|
1386
|
+
"name": "account",
|
1387
|
+
"type": "address"
|
1388
|
+
}
|
1389
|
+
],
|
1390
|
+
"name": "OwnableUnauthorizedAccount",
|
1391
|
+
"type": "error"
|
1392
|
+
},
|
1393
|
+
{
|
1394
|
+
"inputs": [],
|
1395
|
+
"name": "ReentrancyGuardReentrantCall",
|
1396
|
+
"type": "error"
|
1397
|
+
},
|
1398
|
+
{
|
1399
|
+
"inputs": [
|
1400
|
+
{
|
1401
|
+
"internalType": "address",
|
1402
|
+
"name": "token",
|
1403
|
+
"type": "address"
|
1404
|
+
}
|
1405
|
+
],
|
1406
|
+
"name": "SafeERC20FailedOperation",
|
1407
|
+
"type": "error"
|
1408
|
+
},
|
1409
|
+
{
|
1410
|
+
"inputs": [],
|
1411
|
+
"name": "SignatureFailed",
|
1412
|
+
"type": "error"
|
1413
|
+
},
|
1414
|
+
{
|
1415
|
+
"inputs": [
|
1416
|
+
{
|
1417
|
+
"internalType": "string",
|
1418
|
+
"name": "str",
|
1419
|
+
"type": "string"
|
1420
|
+
}
|
1421
|
+
],
|
1422
|
+
"name": "StringTooLong",
|
1423
|
+
"type": "error"
|
1424
|
+
},
|
1425
|
+
{
|
1426
|
+
"inputs": [
|
1427
|
+
{
|
1428
|
+
"internalType": "uint256",
|
1429
|
+
"name": "",
|
1430
|
+
"type": "uint256"
|
1431
|
+
},
|
1432
|
+
{
|
1433
|
+
"internalType": "uint256",
|
1434
|
+
"name": "",
|
1435
|
+
"type": "uint256"
|
1436
|
+
}
|
1437
|
+
],
|
1438
|
+
"name": "ValueNotEnough",
|
1439
|
+
"type": "error"
|
1440
|
+
},
|
1441
|
+
{
|
1442
|
+
"anonymous": false,
|
1443
|
+
"inputs": [
|
1444
|
+
{
|
1445
|
+
"indexed": true,
|
1446
|
+
"internalType": "address",
|
1447
|
+
"name": "claimerAdmin",
|
1448
|
+
"type": "address"
|
1449
|
+
},
|
1450
|
+
{
|
1451
|
+
"indexed": true,
|
1452
|
+
"internalType": "address",
|
1453
|
+
"name": "tokenAddress",
|
1454
|
+
"type": "address"
|
1455
|
+
},
|
1456
|
+
{
|
1457
|
+
"indexed": true,
|
1458
|
+
"internalType": "uint256",
|
1459
|
+
"name": "amount",
|
1460
|
+
"type": "uint256"
|
1461
|
+
},
|
1462
|
+
{
|
1463
|
+
"indexed": false,
|
1464
|
+
"internalType": "uint256",
|
1465
|
+
"name": "balanceDifference",
|
1466
|
+
"type": "uint256"
|
1467
|
+
}
|
1468
|
+
],
|
1469
|
+
"name": "ClaimAdmin",
|
1470
|
+
"type": "event"
|
1471
|
+
},
|
1472
|
+
{
|
1473
|
+
"anonymous": false,
|
1474
|
+
"inputs": [
|
1475
|
+
{
|
1476
|
+
"indexed": true,
|
1477
|
+
"internalType": "address",
|
1478
|
+
"name": "affiliate",
|
1479
|
+
"type": "address"
|
1480
|
+
},
|
1481
|
+
{
|
1482
|
+
"indexed": true,
|
1483
|
+
"internalType": "address",
|
1484
|
+
"name": "tokenAddress",
|
1485
|
+
"type": "address"
|
1486
|
+
},
|
1487
|
+
{
|
1488
|
+
"indexed": true,
|
1489
|
+
"internalType": "uint256",
|
1490
|
+
"name": "amount",
|
1491
|
+
"type": "uint256"
|
1492
|
+
},
|
1493
|
+
{
|
1494
|
+
"indexed": false,
|
1495
|
+
"internalType": "uint256",
|
1496
|
+
"name": "balanceDifference",
|
1497
|
+
"type": "uint256"
|
1498
|
+
}
|
1499
|
+
],
|
1500
|
+
"name": "ClaimAffiliate",
|
1501
|
+
"type": "event"
|
1502
|
+
},
|
1503
|
+
{
|
1504
|
+
"anonymous": false,
|
1505
|
+
"inputs": [
|
1506
|
+
{
|
1507
|
+
"indexed": true,
|
1508
|
+
"internalType": "address",
|
1509
|
+
"name": "claimerSolver",
|
1510
|
+
"type": "address"
|
1511
|
+
},
|
1512
|
+
{
|
1513
|
+
"indexed": true,
|
1514
|
+
"internalType": "address",
|
1515
|
+
"name": "tokenAddress",
|
1516
|
+
"type": "address"
|
1517
|
+
},
|
1518
|
+
{
|
1519
|
+
"indexed": true,
|
1520
|
+
"internalType": "uint256",
|
1521
|
+
"name": "amount",
|
1522
|
+
"type": "uint256"
|
1523
|
+
},
|
1524
|
+
{
|
1525
|
+
"indexed": false,
|
1526
|
+
"internalType": "uint256",
|
1527
|
+
"name": "balanceDifference",
|
1528
|
+
"type": "uint256"
|
1529
|
+
}
|
1530
|
+
],
|
1531
|
+
"name": "ClaimSolver",
|
1532
|
+
"type": "event"
|
1533
|
+
},
|
1534
|
+
{
|
1535
|
+
"anonymous": false,
|
1536
|
+
"inputs": [],
|
1537
|
+
"name": "EIP712DomainChanged",
|
1538
|
+
"type": "event"
|
1539
|
+
},
|
1540
|
+
{
|
1541
|
+
"anonymous": false,
|
1542
|
+
"inputs": [
|
1543
|
+
{
|
1544
|
+
"indexed": true,
|
1545
|
+
"internalType": "address",
|
1546
|
+
"name": "previousOwner",
|
1547
|
+
"type": "address"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"indexed": true,
|
1551
|
+
"internalType": "address",
|
1552
|
+
"name": "newOwner",
|
1553
|
+
"type": "address"
|
1554
|
+
}
|
1555
|
+
],
|
1556
|
+
"name": "OwnershipTransferred",
|
1557
|
+
"type": "event"
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"anonymous": false,
|
1561
|
+
"inputs": [
|
1562
|
+
{
|
1563
|
+
"indexed": true,
|
1564
|
+
"internalType": "bytes",
|
1565
|
+
"name": "id",
|
1566
|
+
"type": "bytes"
|
1567
|
+
},
|
1568
|
+
{
|
1569
|
+
"indexed": true,
|
1570
|
+
"internalType": "address",
|
1571
|
+
"name": "sender",
|
1572
|
+
"type": "address"
|
1573
|
+
},
|
1574
|
+
{
|
1575
|
+
"components": [
|
1576
|
+
{
|
1577
|
+
"internalType": "bytes",
|
1578
|
+
"name": "id",
|
1579
|
+
"type": "bytes"
|
1580
|
+
},
|
1581
|
+
{
|
1582
|
+
"internalType": "address",
|
1583
|
+
"name": "user",
|
1584
|
+
"type": "address"
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"internalType": "address",
|
1588
|
+
"name": "tokenInAddress",
|
1589
|
+
"type": "address"
|
1590
|
+
},
|
1591
|
+
{
|
1592
|
+
"internalType": "uint256",
|
1593
|
+
"name": "amountIn",
|
1594
|
+
"type": "uint256"
|
1595
|
+
},
|
1596
|
+
{
|
1597
|
+
"internalType": "uint256",
|
1598
|
+
"name": "initiationExpiry",
|
1599
|
+
"type": "uint256"
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
"internalType": "bytes32",
|
1603
|
+
"name": "orderDataType",
|
1604
|
+
"type": "bytes32"
|
1605
|
+
},
|
1606
|
+
{
|
1607
|
+
"internalType": "bytes",
|
1608
|
+
"name": "orderData",
|
1609
|
+
"type": "bytes"
|
1610
|
+
}
|
1611
|
+
],
|
1612
|
+
"indexed": false,
|
1613
|
+
"internalType": "struct PlutonContract.PlutonRequest",
|
1614
|
+
"name": "plutonRequest",
|
1615
|
+
"type": "tuple"
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
"indexed": false,
|
1619
|
+
"internalType": "uint256",
|
1620
|
+
"name": "balanceDifference",
|
1621
|
+
"type": "uint256"
|
1622
|
+
}
|
1623
|
+
],
|
1624
|
+
"name": "Pluton",
|
1625
|
+
"type": "event"
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"anonymous": false,
|
1629
|
+
"inputs": [
|
1630
|
+
{
|
1631
|
+
"indexed": true,
|
1632
|
+
"internalType": "address",
|
1633
|
+
"name": "refunder",
|
1634
|
+
"type": "address"
|
1635
|
+
},
|
1636
|
+
{
|
1637
|
+
"indexed": true,
|
1638
|
+
"internalType": "address",
|
1639
|
+
"name": "tokenAddress",
|
1640
|
+
"type": "address"
|
1641
|
+
},
|
1642
|
+
{
|
1643
|
+
"indexed": true,
|
1644
|
+
"internalType": "uint256",
|
1645
|
+
"name": "amount",
|
1646
|
+
"type": "uint256"
|
1647
|
+
},
|
1648
|
+
{
|
1649
|
+
"indexed": false,
|
1650
|
+
"internalType": "uint256",
|
1651
|
+
"name": "balanceDifference",
|
1652
|
+
"type": "uint256"
|
1653
|
+
}
|
1654
|
+
],
|
1655
|
+
"name": "Refund",
|
1656
|
+
"type": "event"
|
1657
|
+
},
|
1658
|
+
{
|
1659
|
+
"inputs": [
|
1660
|
+
{
|
1661
|
+
"internalType": "address",
|
1662
|
+
"name": "claimAddress",
|
1663
|
+
"type": "address"
|
1664
|
+
},
|
1665
|
+
{
|
1666
|
+
"internalType": "address",
|
1667
|
+
"name": "tokenAddress",
|
1668
|
+
"type": "address"
|
1669
|
+
},
|
1670
|
+
{
|
1671
|
+
"internalType": "uint256",
|
1672
|
+
"name": "amount",
|
1673
|
+
"type": "uint256"
|
1674
|
+
}
|
1675
|
+
],
|
1676
|
+
"name": "claimAdmin",
|
1677
|
+
"outputs": [],
|
1678
|
+
"stateMutability": "nonpayable",
|
1679
|
+
"type": "function"
|
1680
|
+
},
|
1681
|
+
{
|
1682
|
+
"inputs": [
|
1683
|
+
{
|
1684
|
+
"internalType": "bytes",
|
1685
|
+
"name": "signature",
|
1686
|
+
"type": "bytes"
|
1687
|
+
},
|
1688
|
+
{
|
1689
|
+
"internalType": "address",
|
1690
|
+
"name": "affiliateAddress",
|
1691
|
+
"type": "address"
|
1692
|
+
},
|
1693
|
+
{
|
1694
|
+
"internalType": "address",
|
1695
|
+
"name": "tokenAddress",
|
1696
|
+
"type": "address"
|
1697
|
+
},
|
1698
|
+
{
|
1699
|
+
"internalType": "uint256",
|
1700
|
+
"name": "amount",
|
1701
|
+
"type": "uint256"
|
1702
|
+
}
|
1703
|
+
],
|
1704
|
+
"name": "claimAffiliate",
|
1705
|
+
"outputs": [],
|
1706
|
+
"stateMutability": "nonpayable",
|
1707
|
+
"type": "function"
|
1708
|
+
},
|
1709
|
+
{
|
1710
|
+
"inputs": [
|
1711
|
+
{
|
1712
|
+
"internalType": "bytes",
|
1713
|
+
"name": "signature",
|
1714
|
+
"type": "bytes"
|
1715
|
+
},
|
1716
|
+
{
|
1717
|
+
"internalType": "address",
|
1718
|
+
"name": "claimerAddress",
|
1719
|
+
"type": "address"
|
1720
|
+
},
|
1721
|
+
{
|
1722
|
+
"internalType": "address",
|
1723
|
+
"name": "tokenAddress",
|
1724
|
+
"type": "address"
|
1725
|
+
},
|
1726
|
+
{
|
1727
|
+
"internalType": "uint256",
|
1728
|
+
"name": "amount",
|
1729
|
+
"type": "uint256"
|
1730
|
+
}
|
1731
|
+
],
|
1732
|
+
"name": "claimSolver",
|
1733
|
+
"outputs": [],
|
1734
|
+
"stateMutability": "nonpayable",
|
1735
|
+
"type": "function"
|
1736
|
+
},
|
1737
|
+
{
|
1738
|
+
"inputs": [],
|
1739
|
+
"name": "eip712Domain",
|
1740
|
+
"outputs": [
|
1741
|
+
{
|
1742
|
+
"internalType": "bytes1",
|
1743
|
+
"name": "fields",
|
1744
|
+
"type": "bytes1"
|
1745
|
+
},
|
1746
|
+
{
|
1747
|
+
"internalType": "string",
|
1748
|
+
"name": "name",
|
1749
|
+
"type": "string"
|
1750
|
+
},
|
1751
|
+
{
|
1752
|
+
"internalType": "string",
|
1753
|
+
"name": "version",
|
1754
|
+
"type": "string"
|
1755
|
+
},
|
1756
|
+
{
|
1757
|
+
"internalType": "uint256",
|
1758
|
+
"name": "chainId",
|
1759
|
+
"type": "uint256"
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"internalType": "address",
|
1763
|
+
"name": "verifyingContract",
|
1764
|
+
"type": "address"
|
1765
|
+
},
|
1766
|
+
{
|
1767
|
+
"internalType": "bytes32",
|
1768
|
+
"name": "salt",
|
1769
|
+
"type": "bytes32"
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"internalType": "uint256[]",
|
1773
|
+
"name": "extensions",
|
1774
|
+
"type": "uint256[]"
|
1775
|
+
}
|
1776
|
+
],
|
1777
|
+
"stateMutability": "view",
|
1778
|
+
"type": "function"
|
1779
|
+
},
|
1780
|
+
{
|
1781
|
+
"inputs": [
|
1782
|
+
{
|
1783
|
+
"internalType": "address",
|
1784
|
+
"name": "affiliateAddress",
|
1785
|
+
"type": "address"
|
1786
|
+
},
|
1787
|
+
{
|
1788
|
+
"internalType": "address",
|
1789
|
+
"name": "tokenAddress",
|
1790
|
+
"type": "address"
|
1791
|
+
}
|
1792
|
+
],
|
1793
|
+
"name": "lastAffiliateAddressAmount",
|
1794
|
+
"outputs": [
|
1795
|
+
{
|
1796
|
+
"internalType": "uint256",
|
1797
|
+
"name": "lastClaim",
|
1798
|
+
"type": "uint256"
|
1799
|
+
}
|
1800
|
+
],
|
1801
|
+
"stateMutability": "view",
|
1802
|
+
"type": "function"
|
1803
|
+
},
|
1804
|
+
{
|
1805
|
+
"inputs": [
|
1806
|
+
{
|
1807
|
+
"internalType": "address",
|
1808
|
+
"name": "refundAddress",
|
1809
|
+
"type": "address"
|
1810
|
+
},
|
1811
|
+
{
|
1812
|
+
"internalType": "address",
|
1813
|
+
"name": "tokenAddress",
|
1814
|
+
"type": "address"
|
1815
|
+
}
|
1816
|
+
],
|
1817
|
+
"name": "lastRefundAddressAmount",
|
1818
|
+
"outputs": [
|
1819
|
+
{
|
1820
|
+
"internalType": "uint256",
|
1821
|
+
"name": "lastClaim",
|
1822
|
+
"type": "uint256"
|
1823
|
+
}
|
1824
|
+
],
|
1825
|
+
"stateMutability": "view",
|
1826
|
+
"type": "function"
|
1827
|
+
},
|
1828
|
+
{
|
1829
|
+
"inputs": [
|
1830
|
+
{
|
1831
|
+
"internalType": "address",
|
1832
|
+
"name": "solverAddress",
|
1833
|
+
"type": "address"
|
1834
|
+
},
|
1835
|
+
{
|
1836
|
+
"internalType": "address",
|
1837
|
+
"name": "tokenAddress",
|
1838
|
+
"type": "address"
|
1839
|
+
}
|
1840
|
+
],
|
1841
|
+
"name": "lastSolverAddressAmount",
|
1842
|
+
"outputs": [
|
1843
|
+
{
|
1844
|
+
"internalType": "uint256",
|
1845
|
+
"name": "lastClaim",
|
1846
|
+
"type": "uint256"
|
1847
|
+
}
|
1848
|
+
],
|
1849
|
+
"stateMutability": "view",
|
1850
|
+
"type": "function"
|
1851
|
+
},
|
1852
|
+
{
|
1853
|
+
"inputs": [],
|
1854
|
+
"name": "owner",
|
1855
|
+
"outputs": [
|
1856
|
+
{
|
1857
|
+
"internalType": "address",
|
1858
|
+
"name": "",
|
1859
|
+
"type": "address"
|
1860
|
+
}
|
1861
|
+
],
|
1862
|
+
"stateMutability": "view",
|
1863
|
+
"type": "function"
|
1864
|
+
},
|
1865
|
+
{
|
1866
|
+
"inputs": [
|
1867
|
+
{
|
1868
|
+
"components": [
|
1869
|
+
{
|
1870
|
+
"internalType": "bytes",
|
1871
|
+
"name": "id",
|
1872
|
+
"type": "bytes"
|
1873
|
+
},
|
1874
|
+
{
|
1875
|
+
"internalType": "address",
|
1876
|
+
"name": "user",
|
1877
|
+
"type": "address"
|
1878
|
+
},
|
1879
|
+
{
|
1880
|
+
"internalType": "address",
|
1881
|
+
"name": "tokenInAddress",
|
1882
|
+
"type": "address"
|
1883
|
+
},
|
1884
|
+
{
|
1885
|
+
"internalType": "uint256",
|
1886
|
+
"name": "amountIn",
|
1887
|
+
"type": "uint256"
|
1888
|
+
},
|
1889
|
+
{
|
1890
|
+
"internalType": "uint256",
|
1891
|
+
"name": "initiationExpiry",
|
1892
|
+
"type": "uint256"
|
1893
|
+
},
|
1894
|
+
{
|
1895
|
+
"internalType": "bytes32",
|
1896
|
+
"name": "orderDataType",
|
1897
|
+
"type": "bytes32"
|
1898
|
+
},
|
1899
|
+
{
|
1900
|
+
"internalType": "bytes",
|
1901
|
+
"name": "orderData",
|
1902
|
+
"type": "bytes"
|
1903
|
+
}
|
1904
|
+
],
|
1905
|
+
"internalType": "struct PlutonContract.PlutonRequest",
|
1906
|
+
"name": "plutonRequest",
|
1907
|
+
"type": "tuple"
|
1908
|
+
}
|
1909
|
+
],
|
1910
|
+
"name": "pluton",
|
1911
|
+
"outputs": [],
|
1912
|
+
"stateMutability": "payable",
|
1913
|
+
"type": "function"
|
1914
|
+
},
|
1915
|
+
{
|
1916
|
+
"inputs": [
|
1917
|
+
{
|
1918
|
+
"internalType": "bytes",
|
1919
|
+
"name": "signature",
|
1920
|
+
"type": "bytes"
|
1921
|
+
},
|
1922
|
+
{
|
1923
|
+
"internalType": "address",
|
1924
|
+
"name": "refundAddress",
|
1925
|
+
"type": "address"
|
1926
|
+
},
|
1927
|
+
{
|
1928
|
+
"internalType": "address",
|
1929
|
+
"name": "tokenAddress",
|
1930
|
+
"type": "address"
|
1931
|
+
},
|
1932
|
+
{
|
1933
|
+
"internalType": "uint256",
|
1934
|
+
"name": "amount",
|
1935
|
+
"type": "uint256"
|
1936
|
+
}
|
1937
|
+
],
|
1938
|
+
"name": "refundUser",
|
1939
|
+
"outputs": [],
|
1940
|
+
"stateMutability": "nonpayable",
|
1941
|
+
"type": "function"
|
1942
|
+
},
|
1943
|
+
{
|
1944
|
+
"inputs": [],
|
1945
|
+
"name": "renounceOwnership",
|
1946
|
+
"outputs": [],
|
1947
|
+
"stateMutability": "nonpayable",
|
1948
|
+
"type": "function"
|
1949
|
+
},
|
1950
|
+
{
|
1951
|
+
"inputs": [
|
1952
|
+
{
|
1953
|
+
"internalType": "address",
|
1954
|
+
"name": "newOwner",
|
1955
|
+
"type": "address"
|
1956
|
+
}
|
1957
|
+
],
|
1958
|
+
"name": "transferOwnership",
|
1959
|
+
"outputs": [],
|
1960
|
+
"stateMutability": "nonpayable",
|
1961
|
+
"type": "function"
|
1962
|
+
}
|
1963
|
+
]
|
1308
1964
|
},
|
1309
1965
|
"proxy": {
|
1310
|
-
"address": "
|
1311
|
-
"abi": [
|
1966
|
+
"address": "0x83d9838B460FD583E9942960B732A494A345a4cc",
|
1967
|
+
"abi": [
|
1968
|
+
{
|
1969
|
+
"inputs": [
|
1970
|
+
{
|
1971
|
+
"internalType": "address",
|
1972
|
+
"name": "_agniMultiCall3",
|
1973
|
+
"type": "address"
|
1974
|
+
},
|
1975
|
+
{
|
1976
|
+
"internalType": "address",
|
1977
|
+
"name": "_plutonContractAddress",
|
1978
|
+
"type": "address"
|
1979
|
+
},
|
1980
|
+
{
|
1981
|
+
"internalType": "address",
|
1982
|
+
"name": "_baseTokenAddress",
|
1983
|
+
"type": "address"
|
1984
|
+
}
|
1985
|
+
],
|
1986
|
+
"stateMutability": "nonpayable",
|
1987
|
+
"type": "constructor"
|
1988
|
+
},
|
1989
|
+
{
|
1990
|
+
"inputs": [],
|
1991
|
+
"name": "ReentrancyGuardReentrantCall",
|
1992
|
+
"type": "error"
|
1993
|
+
},
|
1994
|
+
{
|
1995
|
+
"inputs": [],
|
1996
|
+
"name": "SwapFailed",
|
1997
|
+
"type": "error"
|
1998
|
+
},
|
1999
|
+
{
|
2000
|
+
"inputs": [],
|
2001
|
+
"name": "baseTokenAddress",
|
2002
|
+
"outputs": [
|
2003
|
+
{
|
2004
|
+
"internalType": "address",
|
2005
|
+
"name": "",
|
2006
|
+
"type": "address"
|
2007
|
+
}
|
2008
|
+
],
|
2009
|
+
"stateMutability": "view",
|
2010
|
+
"type": "function"
|
2011
|
+
},
|
2012
|
+
{
|
2013
|
+
"inputs": [],
|
2014
|
+
"name": "plutonContract",
|
2015
|
+
"outputs": [
|
2016
|
+
{
|
2017
|
+
"internalType": "contract PlutonContract",
|
2018
|
+
"name": "",
|
2019
|
+
"type": "address"
|
2020
|
+
}
|
2021
|
+
],
|
2022
|
+
"stateMutability": "view",
|
2023
|
+
"type": "function"
|
2024
|
+
},
|
2025
|
+
{
|
2026
|
+
"inputs": [
|
2027
|
+
{
|
2028
|
+
"components": [
|
2029
|
+
{
|
2030
|
+
"internalType": "bytes",
|
2031
|
+
"name": "id",
|
2032
|
+
"type": "bytes"
|
2033
|
+
},
|
2034
|
+
{
|
2035
|
+
"internalType": "address",
|
2036
|
+
"name": "user",
|
2037
|
+
"type": "address"
|
2038
|
+
},
|
2039
|
+
{
|
2040
|
+
"internalType": "uint256",
|
2041
|
+
"name": "initiationExpiry",
|
2042
|
+
"type": "uint256"
|
2043
|
+
},
|
2044
|
+
{
|
2045
|
+
"internalType": "bytes32",
|
2046
|
+
"name": "orderDataType",
|
2047
|
+
"type": "bytes32"
|
2048
|
+
},
|
2049
|
+
{
|
2050
|
+
"internalType": "bytes",
|
2051
|
+
"name": "orderData",
|
2052
|
+
"type": "bytes"
|
2053
|
+
}
|
2054
|
+
],
|
2055
|
+
"internalType": "struct IPlutonMiddleware.PlutonRequest",
|
2056
|
+
"name": "plutonRequest",
|
2057
|
+
"type": "tuple"
|
2058
|
+
},
|
2059
|
+
{
|
2060
|
+
"internalType": "address",
|
2061
|
+
"name": "srcTokenAddress",
|
2062
|
+
"type": "address"
|
2063
|
+
},
|
2064
|
+
{
|
2065
|
+
"internalType": "uint256",
|
2066
|
+
"name": "amountIn",
|
2067
|
+
"type": "uint256"
|
2068
|
+
},
|
2069
|
+
{
|
2070
|
+
"internalType": "bytes",
|
2071
|
+
"name": "swapCallData",
|
2072
|
+
"type": "bytes"
|
2073
|
+
}
|
2074
|
+
],
|
2075
|
+
"name": "swapAndPluton",
|
2076
|
+
"outputs": [],
|
2077
|
+
"stateMutability": "payable",
|
2078
|
+
"type": "function"
|
2079
|
+
}
|
2080
|
+
]
|
1312
2081
|
}
|
1313
2082
|
}
|
1314
2083
|
]
|
package/package.json
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
{
|
2
|
-
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "dist/index.js",
|
5
|
-
"types": "dist/index.d.ts",
|
6
|
-
"files": [
|
7
|
-
"dist"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
-
"build": "tsc"
|
12
|
-
},
|
13
|
-
"keywords": [],
|
14
|
-
"author": "",
|
15
|
-
"license": "ISC",
|
16
|
-
"description": "",
|
17
|
-
"devDependencies": {
|
18
|
-
"eslint": "^8.57.1",
|
19
|
-
"prettier": "^3.5.0",
|
20
|
-
"typescript": "^5.7.3"
|
21
|
-
},
|
22
|
-
"dependencies": {
|
23
|
-
"bignumber.js": "^9.1.2",
|
24
|
-
"class-transformer": "^0.5.1",
|
25
|
-
"class-validator": "^0.14.1",
|
26
|
-
"ethers": "^6.13.5"
|
27
|
-
}
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.38-beta",
|
4
|
+
"main": "dist/index.js",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"files": [
|
7
|
+
"dist"
|
8
|
+
],
|
9
|
+
"scripts": {
|
10
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
+
"build": "tsc"
|
12
|
+
},
|
13
|
+
"keywords": [],
|
14
|
+
"author": "",
|
15
|
+
"license": "ISC",
|
16
|
+
"description": "",
|
17
|
+
"devDependencies": {
|
18
|
+
"eslint": "^8.57.1",
|
19
|
+
"prettier": "^3.5.0",
|
20
|
+
"typescript": "^5.7.3"
|
21
|
+
},
|
22
|
+
"dependencies": {
|
23
|
+
"bignumber.js": "^9.1.2",
|
24
|
+
"class-transformer": "^0.5.1",
|
25
|
+
"class-validator": "^0.14.1",
|
26
|
+
"ethers": "^6.13.5"
|
27
|
+
}
|
28
|
+
}
|