@opensea/sdk 11.1.0 → 11.1.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.
@@ -646,18 +646,22 @@ export interface GetTokensArgs {
646
646
  * @category API Query Args
647
647
  */
648
648
  export interface GetSwapQuoteArgs {
649
- /** Address of the input token */
650
- tokenIn: string;
651
- /** Address of the output token */
652
- tokenOut: string;
653
- /** Amount of input token */
654
- amount: string;
655
- /** Chain for the swap */
656
- chain: string;
657
- /** Address of the taker */
658
- takerAddress?: string;
659
- /** Slippage tolerance */
649
+ /** Chain of the token to swap from */
650
+ fromChain: string;
651
+ /** Contract address of the token to swap from */
652
+ fromAddress: string;
653
+ /** Chain of the token to swap to */
654
+ toChain: string;
655
+ /** Contract address of the token to swap to */
656
+ toAddress: string;
657
+ /** Amount to swap in the smallest unit of the token (e.g. wei for ETH) */
658
+ quantity: string;
659
+ /** Wallet address executing the swap */
660
+ address: string;
661
+ /** Slippage tolerance, 0.0 to 0.5 (default 0.01) */
660
662
  slippage?: number;
663
+ /** Recipient address (defaults to the sender address) */
664
+ recipient?: string;
661
665
  }
662
666
  /**
663
667
  * Response from OpenSea API for fetching a swap quote.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensea/sdk",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs, tokens, and our marketplace data",
5
5
  "license": "MIT",
6
6
  "author": "OpenSea Developers",
package/src/api/types.ts CHANGED
@@ -759,18 +759,22 @@ export interface GetTokensArgs {
759
759
  * @category API Query Args
760
760
  */
761
761
  export interface GetSwapQuoteArgs {
762
- /** Address of the input token */
763
- tokenIn: string
764
- /** Address of the output token */
765
- tokenOut: string
766
- /** Amount of input token */
767
- amount: string
768
- /** Chain for the swap */
769
- chain: string
770
- /** Address of the taker */
771
- takerAddress?: string
772
- /** Slippage tolerance */
762
+ /** Chain of the token to swap from */
763
+ fromChain: string
764
+ /** Contract address of the token to swap from */
765
+ fromAddress: string
766
+ /** Chain of the token to swap to */
767
+ toChain: string
768
+ /** Contract address of the token to swap to */
769
+ toAddress: string
770
+ /** Amount to swap in the smallest unit of the token (e.g. wei for ETH) */
771
+ quantity: string
772
+ /** Wallet address executing the swap */
773
+ address: string
774
+ /** Slippage tolerance, 0.0 to 0.5 (default 0.01) */
773
775
  slippage?: number
776
+ /** Recipient address (defaults to the sender address) */
777
+ recipient?: string
774
778
  }
775
779
 
776
780
  /**