@swapkit/api-sdk-typescript 2.0.1 → 2.0.2-nightly.20260804024839

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/index.d.cts CHANGED
@@ -1587,7 +1587,7 @@ type ExecuteSwapResponse = {
1587
1587
  * Memo to include in the transaction
1588
1588
  */
1589
1589
  memo?: string;
1590
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1590
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1591
1591
  txHint?: 'simpleTransfer' | 'transferWithMemo' | 'contractCall';
1592
1592
  tx?: {
1593
1593
  /**
@@ -1708,6 +1708,34 @@ type ExecuteSwapResponse = {
1708
1708
  value: {
1709
1709
  [key: string]: unknown;
1710
1710
  };
1711
+ } | {
1712
+ typedData: {
1713
+ domain: {
1714
+ name: string;
1715
+ version: string;
1716
+ chainId: number;
1717
+ verifyingContract: string;
1718
+ };
1719
+ primaryType: string;
1720
+ types: {
1721
+ [key: string]: Array<{
1722
+ name: string;
1723
+ type: string;
1724
+ }>;
1725
+ };
1726
+ message: {
1727
+ [key: string]: unknown;
1728
+ };
1729
+ };
1730
+ action: {
1731
+ type: 'usdSend';
1732
+ hyperliquidChain: string;
1733
+ signatureChainId: string;
1734
+ destination: string;
1735
+ amount: string;
1736
+ time: number;
1737
+ };
1738
+ submitTo: string;
1711
1739
  } | string;
1712
1740
  meta: {
1713
1741
  assets?: Array<{
@@ -1742,7 +1770,7 @@ type ExecuteSwapResponse = {
1742
1770
  approvalAddress?: string;
1743
1771
  affiliate?: string;
1744
1772
  affiliateFee?: string;
1745
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1773
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1746
1774
  chainflip?: {
1747
1775
  destinationAddress: string;
1748
1776
  sellAsset: {
package/dist/index.d.ts CHANGED
@@ -1587,7 +1587,7 @@ type ExecuteSwapResponse = {
1587
1587
  * Memo to include in the transaction
1588
1588
  */
1589
1589
  memo?: string;
1590
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1590
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1591
1591
  txHint?: 'simpleTransfer' | 'transferWithMemo' | 'contractCall';
1592
1592
  tx?: {
1593
1593
  /**
@@ -1708,6 +1708,34 @@ type ExecuteSwapResponse = {
1708
1708
  value: {
1709
1709
  [key: string]: unknown;
1710
1710
  };
1711
+ } | {
1712
+ typedData: {
1713
+ domain: {
1714
+ name: string;
1715
+ version: string;
1716
+ chainId: number;
1717
+ verifyingContract: string;
1718
+ };
1719
+ primaryType: string;
1720
+ types: {
1721
+ [key: string]: Array<{
1722
+ name: string;
1723
+ type: string;
1724
+ }>;
1725
+ };
1726
+ message: {
1727
+ [key: string]: unknown;
1728
+ };
1729
+ };
1730
+ action: {
1731
+ type: 'usdSend';
1732
+ hyperliquidChain: string;
1733
+ signatureChainId: string;
1734
+ destination: string;
1735
+ amount: string;
1736
+ time: number;
1737
+ };
1738
+ submitTo: string;
1711
1739
  } | string;
1712
1740
  meta: {
1713
1741
  assets?: Array<{
@@ -1742,7 +1770,7 @@ type ExecuteSwapResponse = {
1742
1770
  approvalAddress?: string;
1743
1771
  affiliate?: string;
1744
1772
  affiliateFee?: string;
1745
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1773
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1746
1774
  chainflip?: {
1747
1775
  destinationAddress: string;
1748
1776
  sellAsset: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swapkit/api-sdk-typescript",
3
- "version": "2.0.1",
3
+ "version": "2.0.2-nightly.20260804024839",
4
4
  "description": "Type-safe TypeScript SDK for the SwapKit API",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/types.ts CHANGED
@@ -1293,7 +1293,7 @@ export type ExecuteSwapResponse = {
1293
1293
  * Memo to include in the transaction
1294
1294
  */
1295
1295
  memo?: string;
1296
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1296
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1297
1297
  txHint?: 'simpleTransfer' | 'transferWithMemo' | 'contractCall';
1298
1298
  tx?: {
1299
1299
  /**
@@ -1414,6 +1414,34 @@ export type ExecuteSwapResponse = {
1414
1414
  value: {
1415
1415
  [key: string]: unknown;
1416
1416
  };
1417
+ } | {
1418
+ typedData: {
1419
+ domain: {
1420
+ name: string;
1421
+ version: string;
1422
+ chainId: number;
1423
+ verifyingContract: string;
1424
+ };
1425
+ primaryType: string;
1426
+ types: {
1427
+ [key: string]: Array<{
1428
+ name: string;
1429
+ type: string;
1430
+ }>;
1431
+ };
1432
+ message: {
1433
+ [key: string]: unknown;
1434
+ };
1435
+ };
1436
+ action: {
1437
+ type: 'usdSend';
1438
+ hyperliquidChain: string;
1439
+ signatureChainId: string;
1440
+ destination: string;
1441
+ amount: string;
1442
+ time: number;
1443
+ };
1444
+ submitTo: string;
1417
1445
  } | string;
1418
1446
  meta: {
1419
1447
  assets?: Array<{
@@ -1448,7 +1476,7 @@ export type ExecuteSwapResponse = {
1448
1476
  approvalAddress?: string;
1449
1477
  affiliate?: string;
1450
1478
  affiliateFee?: string;
1451
- txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW';
1479
+ txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND';
1452
1480
  chainflip?: {
1453
1481
  destinationAddress: string;
1454
1482
  sellAsset: {